package com.huawei.esdk.uc.device.u19.callback.impl;

import com.huawei.ecs.bin.common.Connection;
import com.huawei.ecs.bin.common.MsgCallback;
import com.huawei.ecs.bin.service.NotiConf;
import com.huawei.esdk.platform.callback.ISouthCallbackService;
import com.huawei.esdk.platform.common.utils.ApplicationContextUtil;
import com.huawei.esdk.uc.device.u19.callback.convert.NotifyCapabilityConvert;

public class UCU19ConfCallback implements MsgCallback<NotiConf>
{
    private static final NotifyCapabilityConvert NOTIFY_CAPABILITY_CONVERT = new NotifyCapabilityConvert();
    
    @Override
    public void onMsg(Connection conn, NotiConf notiConf)
    {
        ISouthCallbackService service = ApplicationContextUtil.getBean("u19CallbackService");
        service.processCallbackMessage(NOTIFY_CAPABILITY_CONVERT.getConfStatusObj2String(notiConf));
    }
}
